<template>
  <div>
    <el-row>
      <el-col :span="18">
        <el-row>
          <el-col :span="13" style="padding-right: 10px;">
            <div class="box home-user-task-stats bgc1">
              <div class="header">
                工单统计
                <div class="title"><span class="sub-title">2022.10.01 ~ 2022.10.28</span></div>
              </div>
              <div class="body">
                <div class="stats">
                  <div class="item">
                    <div class="num color1 text-shadow1">638</div>
                    <div class="text color2">工单总数（个）</div>
                  </div>
                </div>
                <div class="stats">
                  <div class="item">
                    <div class="num color1 text-shadow1">3</div>
                    <div class="text color2">完成工单（个）</div>
                  </div>
                </div>
                <div class="stats">
                  <div class="item">
                    <div class="num color1 text-shadow1">0</div>
                    <div class="text color2">进行工单（个）</div>
                  </div>
                </div>
                <div class="stats">
                  <div class="item">
                    <div class="num color1 text-shadow1">634</div>
                    <div class="text color2">取消工单（个）</div>
                  </div>
                </div>
              </div>
            </div>
          </el-col>
          <el-col :span="11" style="padding-left: 10px; padding-right: 10px;">
            <div class="box home-sku-sale-stats bgc2">
              <div class="header">
                <div class="title">
                  销售统计
                  <span class="sub-title">2022.10.01 ~ 2022.10.28</span>
                </div>
              </div>
              <div class="body">
                <div class="stats">
                  <div class="item">
                    <div class="num color3 text-shadow2">13049</div>
                    <div class="text color4">订单量（个）</div>
                  </div>
                </div>
                <div class="stats">
                  <div class="item">
                    <div class="num color3 text-shadow2">8.50</div>
                    <div class="text color4">销售额（万元）</div>
                  </div>
                </div>
              </div>
            </div>
          </el-col>
        </el-row>
        <!-- 销售数据开始 -->
        <SalesData />
        <!-- 销售数据结束 -->
      </el-col>
      <!-- 热销开始 -->
      <HotSellerList />
      <!-- 热销结束 -->
    </el-row>
    <el-row>
      <el-col :span="14">
        <PartnerLocation />
      </el-col>
      <el-col :span="10" style="padding-left: 10px; padding-right: 10px;" />
    </el-row>
  </div>
</template>

<script>
import HotSellerList from './component/HotSellerList.vue'
import SalesData from './component/SalesData.vue'
import PartnerLocation from './component/PartnerLocation.vue'
export default {
  components: {
    HotSellerList,
    SalesData,
    PartnerLocation
  },
  computed: {

  }
}
</script>
<style lang="scss">
.box {
  padding: 20px;
  border-radius: 20px;
  .header {
    display: -webkit-box;
    display: flex;
  }
  .title {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-flex: 1;
    flex: 1;
    font-size: 16px;
    font-family: PingFangSC-Semibold,PingFang SC;
    font-weight: 600;
    color: #333;
  }
  .sub-title {
    margin-left: 10px;
    font-size: 12px;
    font-family: PingFangSC-Regular,PingFang SC;
    font-weight: 400;
    color: #999;
  }
}
</style>

<style lang="scss" scoped>
.bgc1 {
  background: #e9f3ff;
  background-image: url(~@/assets/common/bgc1.png) !important;
  background-repeat: no-repeat,no-repeat;
  background-position: 0 0,calc(100% - 12px) 100%;
}
.bgc2 {
  background: #fbefe8 url(~@/assets/common/bgc2.png) no-repeat calc(100% - 12px) 100% !important;
}
.home-user-task-stats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-direction: column;
  height: calc(20vh - 24px);
  min-height: 166px;
  background: #e9f3ff;
  border-radius: 20px;
  .body {
    -webkit-box-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    .stats {
      align-items: center;
      -webkit-box-flex: 1;
      -webkit-box-pack: center;
      justify-content: center;
      flex: 1;
      display: flex;
      .item {
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        flex-direction: column;
        .text-shadow1 {
          text-shadow: 2px 4px 7px rgb(85 132 255 / 50%);
        }
        .color1 {
          color: #072074;
        }
        .color2 {
          color: #91a7dc;
        }
        .text {
          height: 17px;
          margin-top: 3px;
          font-size: 12px;
          font-family: PingFangSC-Regular,PingFang SC;
          font-weight: 400;
          color: #91a7dc;
          line-height: 17px;
        }
        .num {
          height: 50px;
          font-size: 36px;
          font-family: PingFangSC-Semibold,PingFang SC;
          font-weight: 600;
          line-height: 50px;
          text-shadow: 2px 4px 7px rgb(85 132 255 / 50%);
        }
      }
    }
  }
}
.home-sku-sale-stats {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    height: calc(20vh - 24px);
    min-height: 166px;
    background: #e9f3ff;
    border-radius: 20px;
    .body {
      -webkit-box-flex: 1;
      flex: 1;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      .stats {
        -webkit-box-align: center;
        align-items: center;
        -webkit-box-pack: center;
        justify-content: center;
        -webkit-box-flex: 1;
        flex: 1;
        display: -webkit-box;
        display: flex;
        .item {
          display: -webkit-inline-box;
          display: inline-flex;
          -webkit-box-orient: vertical;
          -webkit-box-direction: normal;
          flex-direction: column;
          .text-shadow2 {
            text-shadow: 2px 4px 7px rgb(255 99 85 / 50%);
          }
          .color3 {
            color: #ff5757;
          }
          .color4 {
            color: #de9690;
          }
          .num {
            height: 50px;
            font-size: 36px;
            font-family: PingFangSC-Semibold,PingFang SC;
            font-weight: 600;
            line-height: 50px;
            text-shadow: 2px 4px 7px rgb(85 132 255 / 50%);
          }
          .text {
            height: 17px;
            margin-top: 3px;
            font-size: 12px;
            font-family: PingFangSC-Regular,PingFang SC;
            font-weight: 400;
            color: #91a7dc;
            line-height: 17px
          }
        }
      }
    }
}
</style>
